<template>
  <div class="error-page">
    <div class="error-content">
      <div class="error-image">
        <img src="@/assets/404.svg" alt="404" />
      </div>
      <h1 class="error-title">页面不见了 (404)</h1>
      <p class="error-desc">抱歉，您访问的页面不存在或已被删除</p>
      <div class="error-actions">
        <a-button type="primary" size="large" @click="$router.push('/')">
          <a-icon type="home" />返回首页
        </a-button>
        <a-button size="large" @click="$router.go(-1)" style="margin-left: 16px">
          <a-icon type="arrow-left" />返回上页
        </a-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound'
}
</script>

<style scoped>
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
}

.error-content {
  text-align: center;
  padding: 48px;
}

.error-image {
  max-width: 400px;
  margin: 0 auto 32px;
}

.error-image img {
  width: 100%;
  height: auto;
}

.error-title {
  font-size: 36px;
  color: #1f2937;
  margin-bottom: 16px;
  font-weight: 600;
}

.error-desc {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.error-actions .ant-btn {
  display: flex;
  align-items: center;
}

.error-actions .ant-btn .anticon {
  margin-right: 8px;
}
</style> 